.header {
    background-color: #393D49;
    width: 100%;
    height: 60px;
}

.header .logo {
    width: 200px;
    height: 60px;
    float: left;
    text-align: center;
}

.header .logo a {
    font-size: 30px;
    color: #FFF;
    line-height: 60px;
}

.header .nav {
    float: left;
    /* 默认居左，可调整为居右模式 */
    /* float: right;  */
}

.mobile-icon {
    display: none;
}


.main {
    margin-top: 20px;
}

.main .layui-form-item {
    display: flex;
}

.main .layui-form {
    margin-top: 200px;
}

.demoBox {
    background-color: #2E2D3C;
    text-align: center;
    height: 100px;
    width: 100%;
    color: #FFF;
    font-size: 30px;
    line-height: 100px;
}

@media screen and (max-width: 1024px) {
    .header .logo {
        text-align: left;
    }

    .header .nav {
        display: none;
        width: 100%;
        position: absolute;
        z-index: 99;
        top: 61px; /* 如果需要缝隙，可将值调至61px */
        margin-left: -15px;
    }

    .layui-nav {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

    .header .nav li {
        width: 100%;
        text-align: center;
    }

    .mobile-icon {
        display: block;
        color: #FFF;
        font-size: 30px;
        float: right;
        margin-top: 15px;
    }

    .main .layui-form {
        margin-top: 130px;
    }

    .layui-nav .layui-this:after,
    .layui-nav-bar,
    .layui-nav-tree .layui-nav-itemed:after {
        height: 1px;
        background-color: #5FB878;
    }
}
